package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卡密对象 sys_card
 * 
 * @author ruoyi
 * @date 2024-03-11
 */
public class SysCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 卡密id */
    private Long cardId;

    /** 卡密详情 */
    @Excel(name = "卡密详情")
    private String cardNo;

    /** 卡密类型 */
    @Excel(name = "卡密类型")
    private String cardType;

    /** 绑定人员id */
    @Excel(name = "绑定人员id")
    private Integer employeeId;

    /** 状态0不可用 1表示可用 */
    @Excel(name = "状态0不可用 1表示可用")
    private Integer status;

    /** 卡密开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "卡密开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 卡密截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "卡密截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endtime;

    /** 所有者id--用于后续小程序加盟--数据隔离--默认为1 */
    @Excel(name = "所有者id--用于后续小程序加盟--数据隔离--默认为1")
    private String ownerid;

    public Long getCardId() {
        return cardId;
    }

    public void setCardId(Long cardId) {
        this.cardId = cardId;
    }

    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    public String getCardNo() 
    {
        return cardNo;
    }
    public void setCardType(String cardType) 
    {
        this.cardType = cardType;
    }

    public String getCardType() 
    {
        return cardType;
    }
    public void setEmployeeId(Integer employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Integer getEmployeeId() 
    {
        return employeeId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setStarttime(Date starttime) 
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
    public void setEndtime(Date endtime) 
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
    public void setOwnerid(String ownerid) 
    {
        this.ownerid = ownerid;
    }

    public String getOwnerid() 
    {
        return ownerid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cardId", getCardId())
            .append("cardNo", getCardNo())
            .append("cardType", getCardType())
            .append("employeeId", getEmployeeId())
            .append("status", getStatus())
            .append("starttime", getStarttime())
            .append("endtime", getEndtime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("ownerid", getOwnerid())
            .toString();
    }
}
